package com.asiainfo.dacp.datastash.orm.po.core;

import com.asiainfo.dacp.jpa.annotation.ColumnPosition;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@NoArgsConstructor
@Entity
@Table(name="dacp_datastash_step_define")
public class DataStashStepDefinePo {

    @Id
    @Column(name="step_inst",length = 16)
    private String stepInst;

    @Column(name="step_inst_label",length = 64)
    @ColumnPosition(2)
    private String stepInstLabel;

    @Column(name="step_type",length = 16)
    @ColumnPosition(3)
    private String stepType;

    @Column(name="group_type",length = 16)
    @ColumnPosition(4)
    private String groupType;

    @Column(name="step_cfg")
    @ColumnPosition(5)
    @Lob
    private String stepCfg;

    @Column(name="step_seq")
    @ColumnPosition(6)
    private int stepSeq;

    @Column(name="step_icon",length = 32)
    @ColumnPosition(7)
    private String stepIcon;

    @Column(name="step_state",length = 8)
    @ColumnPosition(8)
    private String stepState;

    @Column(name="step_style",length = 8)
    @ColumnPosition(9)
    private String stepStyle;


   public DataStashStepDefinePo(String stepInst, String stepInstLabel, String stepType, String groupType, String stepCfg, int stepSeq, String stepIcon, String stepState,String stepStyle) {
        this.stepInst = stepInst;
        this.stepInstLabel = stepInstLabel;
        this.stepType = stepType;
        this.groupType = groupType;
        this.stepCfg=stepCfg;
        this.stepSeq = stepSeq;
        this.stepIcon = stepIcon;
        this.stepState = stepState;
        this.stepStyle=stepStyle;
    }
}
